<?php if(!defined('IN_JOSEPPE')) { exit('Access Denied'); } ?>
<?php include_once S_ROOT.'admin/header.php'; ?>
<?php include_once S_ROOT.'admin/menu.php'; ?>
		<div style="margin:0 auto;width:980px;">
	<div id="bd">
		<form action="admin.php" method="post" enctype="multipart/form-data">
			<div class="wrap">
				<?php if(isset($_GET['pid']) && $_GET['pid'] > 0 && $pid = $_SGLOBAL['db']->result_first("select `id` from ".tname("product")." where `id`='$_GET[pid]'")){ ?>
				<input type="hidden" name="pid" value="<?php echo $pid; ?>" />
				<input type="file" name="upload" />
				<input type="radio" name="type" value="product" checked="on" style="width:auto; height:auto;"/> 产品 
				<!--<input type="radio" name="type" value="customer" style="width:auto; height:auto;"/> 客户 -->
				<?php } else { ?>
				<label>请返回<a href="admin.php?cp=product">产品中心</a>选择产品选择产品后 再上传图片</label>
				<?php } ?>
            </div><br/>
			<input type="hidden" name="action" value="uploadimg" />
			<input class="submit" type="submit" name="submit" value="提交" />
        </form>
	</div>
		</div>
    </body>
</html>